module.exports = app => {
    const mongoose = app.mongoose;
    const Schema = mongoose.Schema;
   
    const ArticleSchema = new Schema({
      authorId: { type: String ,required:true},
      title:{type:String,required:true},
      content:{type:String,required:true},
      ImgUrl:{type:Array},
      isPassed:{type:Boolean,default:false},
      createTime:{type:Date,default:Date.now()}
    });
   
    return mongoose.model('Article', ArticleSchema);
  }